import request from '@/utils/request';
import { AxiosPromise } from 'axios';

export function getNumberList(data: any) {
  return request({
    url: '/system/PayChart/orderCount',
    method: 'POST',
    data
  });
}

export function getSuccessRate(data: any) {
  return request({
    url: '/system/PayChart/successRate',
    method: 'POST',
    data
  });
}

export function getStatusNum(data: any) {
  return request({
    url: '/system/PayChart/statusNum',
    method: 'POST',
    data
  });
}

export function getRanking(data: any) {
  return request({
    url: '/system/PayChart/ranking',
    method: 'POST',
    data
  });
}

export function getUpdateTime(data: any) {
  return request({
    url: '/system/PayRate/updateTime',
    method: 'get',
    data
  });
}

